import {html, TemplateResult} from 'lit';
import type {Meta, StoryObj} from '@storybook/web-components';
import "../../../echarts/gauge/lit-gauge-clock.ts"
import {GaugeClockProps} from "../../../echarts/gauge/lit-gauge-clock.ts";

const meta: Meta<GaugeClockProps> = {
    title: 'Echarts/LitGaugeClock',
    tags: ['autodocs'],
    render: (args: GaugeClockProps): TemplateResult => {
        return html`<lit-gauge-clock 
            .chartId=${args.chartId}
            .width=${args.width}
            .height=${args.height}
            .thick=${args.thick}
        />`;
    },
    argTypes: {
        chartId: { control: 'text' },
        width: { control: 'text' },
        height: { control: 'text' },
        thick: { control: 'number' },
    },
};

export default meta;
type Story = StoryObj<GaugeClockProps>;

export const Default: Story = {
    args: {
        chartId: 'basic-gauge-clock-chart',
        width: '800px',
        height: '600px',
        thick: 1,
    }
}